<template>
  <div class="login">
       <Heraders @child-msg="reqChild" :msgFather="msg"/>
       <div>内容</div>
       
       <input type="text" v-model="msg.aa">
  </div>
</template>
<script>
// @ is an alias to /src
// import HelloWorld from '@/components/HelloWorld.vue'
import Heraders from '@/components/Header.vue'
export default {
  name: 'login',
  components: {
      Heraders
  },
  data(){
    return {
      msg:{aa:1234}
    }
  },
  mounted(){

    test();

    // this.test("nihao");
    console.log("传递的参数1",this.$route.query.id)
    // console.log("传递的参数",this.$route.params.id)
  },
  methods:{
    reqChild(req){
      console.log("子组件的通讯内容",req)
    }

  }
}
</script>